package com.jbinfo.qingcaowan.user.dto;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import org.hibernate.validator.constraints.NotBlank;

import com.jbinfo.qingcaowan.base.dto.BaseTimeDTO;
import com.jbinfo.qingcaowan.exam.dto.ExamScoreDTO;
/**
 * 
* @ClassName: User 
* @Description: TODO
* @author ZhangLei
* @date 2016年6月23日 下午5:08:01
 */
public class UserDTO implements Serializable{
    /** 
	* @Fields serialVersionUID : TODO
	*/ 
	private static final long serialVersionUID = 3679107991755589038L;

	private String rowNum;
	
	private String userId;
	@NotBlank(message="用户代码不能为空")
    private String userCode;
	@NotBlank(message="用户名称不能为空")
    private String userName;

    private String userPwd;

    private String userType;

    private String userTel;

    private String userIdcard;

    private String userWechatid;
    
    private String openId; // 用户的标识，对当前公众号唯一

    private String userOrg;
    
    private String userBirth; // 用户生日
    private String userAddr;  // 地址
    private String userPost; // 职位
    
    // 组织名称
    private String orgName;
    
    // 上级组织Id
    private String parentOrgId;
    
    private String userSubOrg;
    
    private String userPosition;
    
    private String orgSubName; // 组织名称
    
    private String positionName; // 职务名称

    private String createUser;

    private Date gmtCreate;

    private String modifiedUser;

    private Date gmtModified;

    private Date expriyDate;

    private String validateFlag;

    private Integer userGrade;

    private String userSex;

    private String userHeader;
    
    private String userEmail;

    private String regfrom;
    
    private Integer myRank; // 我的排名
    
    private List<BaseTimeDTO> baseTimeList; // 阅读时间排名
    
    private List<ScoreDetailDTO> scoreDetailList; // 积分排名
    
    private List<ExamScoreDTO> examScoreList;  // 成绩排名
    
    private String regStatus;  // 是否微信注册  1 为已注册， 0位未注册
    
    private String isOrgManager;
    
    private String interfaceId; // 接口ID
    
    private Integer myOrgRank; // 我的支部排名

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId == null ? null : userId.trim();
    }

    public String getUserCode() {
        return userCode;
    }

    public void setUserCode(String userCode) {
        this.userCode = userCode == null ? null : userCode.trim();
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName == null ? null : userName.trim();
    }

    public String getUserPwd() {
        return userPwd;
    }

    public void setUserPwd(String userPwd) {
        this.userPwd = userPwd == null ? null : userPwd.trim();
    }

    public String getUserType() {
        return userType;
    }

    public void setUserType(String userType) {
        this.userType = userType == null ? null : userType.trim();
    }

    public String getUserTel() {
        return userTel;
    }

    public void setUserTel(String userTel) {
        this.userTel = userTel == null ? null : userTel.trim();
    }

    public String getUserIdcard() {
        return userIdcard;
    }

    public void setUserIdcard(String userIdcard) {
        this.userIdcard = userIdcard == null ? null : userIdcard.trim();
    }

    public String getUserWechatid() {
        return userWechatid;
    }

    public void setUserWechatid(String userWechatid) {
        this.userWechatid = userWechatid == null ? null : userWechatid.trim();
    }

    public String getOpenId() {
		return openId;
	}

	public void setOpenId(String openId) {
		this.openId = openId;
	}

	public String getUserOrg() {
        return userOrg;
    }

    public void setUserOrg(String userOrg) {
        this.userOrg = userOrg == null ? null : userOrg.trim();
    }

    public String getUserBirth() {
		return userBirth;
	}

	public void setUserBirth(String userBirth) {
		this.userBirth = userBirth;
	}

	public String getUserAddr() {
		return userAddr;
	}

	public void setUserAddr(String userAddr) {
		this.userAddr = userAddr;
	}

	public String getUserPost() {
		return userPost;
	}

	public void setUserPost(String userPost) {
		this.userPost = userPost;
	}

	public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser == null ? null : createUser.trim();
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public String getModifiedUser() {
        return modifiedUser;
    }

    public void setModifiedUser(String modifiedUser) {
        this.modifiedUser = modifiedUser == null ? null : modifiedUser.trim();
    }

    public Date getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }

    public Date getExpriyDate() {
        return expriyDate;
    }

    public void setExpriyDate(Date expriyDate) {
        this.expriyDate = expriyDate;
    }

    public String getValidateFlag() {
        return validateFlag;
    }

    public void setValidateFlag(String validateFlag) {
        this.validateFlag = validateFlag == null ? null : validateFlag.trim();
    }

    public Integer getUserGrade() {
        return userGrade;
    }

    public void setUserGrade(Integer userGrade) {
        this.userGrade = userGrade;
    }

    public String getUserSex() {
        return userSex;
    }

    public void setUserSex(String userSex) {
        this.userSex = userSex == null ? null : userSex.trim();
    }

    public String getUserHeader() {
        return userHeader;
    }

    public void setUserHeader(String userHeader) {
        this.userHeader = userHeader == null ? null : userHeader.trim();
    }
    
    public String getUserEmail() {
    	return userEmail;
    }
    
    public void setUserEmail(String userEmail) {
    	this.userEmail = userEmail == null ? null : userEmail.trim();
    }

    public String getRegfrom() {
        return regfrom;
    }

    public void setRegfrom(String regfrom) {
        this.regfrom = regfrom == null ? null : regfrom.trim();
    }

	public Integer getMyRank() {
		return myRank;
	}

	public void setMyRank(Integer myRank) {
		this.myRank = myRank;
	}

	public List<BaseTimeDTO> getBaseTimeList() {
		return baseTimeList;
	}

	public void setBaseTimeList(List<BaseTimeDTO> baseTimeList) {
		this.baseTimeList = baseTimeList;
	}

	public List<ScoreDetailDTO> getScoreDetailList() {
		return scoreDetailList;
	}

	public void setScoreDetailList(List<ScoreDetailDTO> scoreDetailList) {
		this.scoreDetailList = scoreDetailList;
	}

	public List<ExamScoreDTO> getExamScoreList() {
		return examScoreList;
	}

	public void setExamScoreList(List<ExamScoreDTO> examScoreList) {
		this.examScoreList = examScoreList;
	}

	public String getIsOrgManager() {
		return isOrgManager;
	}

	public void setIsOrgManager(String isOrgManager) {
		this.isOrgManager = isOrgManager;
	}

	public String getInterfaceId() {
		return interfaceId;
	}

	public void setInterfaceId(String interfaceId) {
		this.interfaceId = interfaceId;
	}

	public String getRowNum() {
		return rowNum;
	}

	public void setRowNum(String rowNum) {
		this.rowNum = rowNum;
	}

	public String getOrgName() {
		return orgName;
	}

	public void setOrgName(String orgName) {
		this.orgName = orgName;
	}

	public String getParentOrgId() {
		return parentOrgId;
	}

	public void setParentOrgId(String parentOrgId) {
		this.parentOrgId = parentOrgId;
	}

	public String getUserSubOrg() {
		return userSubOrg;
	}

	public void setUserSubOrg(String userSubOrg) {
		this.userSubOrg = userSubOrg;
	}

	public String getUserPosition() {
		return userPosition;
	}

	public void setUserPosition(String userPosition) {
		this.userPosition = userPosition;
	}

	public String getOrgSubName() {
		return orgSubName;
	}

	public void setOrgSubName(String orgSubName) {
		this.orgSubName = orgSubName;
	}

	public String getPositionName() {
		return positionName;
	}

	public void setPositionName(String positionName) {
		this.positionName = positionName;
	}

	public String getRegStatus() {
		return regStatus;
	}

	public void setRegStatus(String regStatus) {
		this.regStatus = regStatus;
	}

	public Integer getMyOrgRank() {
		return myOrgRank;
	}

	public void setMyOrgRank(Integer myOrgRank) {
		this.myOrgRank = myOrgRank;
	}

	@Override
	public String toString() {
		return "UserDTO [rowNum=" + rowNum + ", userId=" + userId + ", userCode=" + userCode + ", userName=" + userName
				+ ", userPwd=" + userPwd + ", userType=" + userType + ", userTel=" + userTel + ", userIdcard="
				+ userIdcard + ", userWechatid=" + userWechatid + ", openId=" + openId + ", userOrg=" + userOrg
				+ ", userBirth=" + userBirth + ", userAddr=" + userAddr + ", userPost=" + userPost + ", orgName="
				+ orgName + ", parentOrgId=" + parentOrgId + ", userSubOrg=" + userSubOrg + ", userPosition="
				+ userPosition + ", orgSubName=" + orgSubName + ", positionName=" + positionName + ", createUser="
				+ createUser + ", gmtCreate=" + gmtCreate + ", modifiedUser=" + modifiedUser + ", gmtModified="
				+ gmtModified + ", expriyDate=" + expriyDate + ", validateFlag=" + validateFlag + ", userGrade="
				+ userGrade + ", userSex=" + userSex + ", userHeader=" + userHeader + ", userEmail=" + userEmail
				+ ", regfrom=" + regfrom + ", myRank=" + myRank + ", baseTimeList=" + baseTimeList
				+ ", scoreDetailList=" + scoreDetailList + ", examScoreList=" + examScoreList + ", regStatus="
				+ regStatus + ", isOrgManager=" + isOrgManager + ", interfaceId=" + interfaceId + "]";
	}


}